<?php
$this->breadcrumbs=array(
	'Taxes'=>array('index'),
	$model->title,
);

$this->menu=array(
	array('label'=>'List Tax', 'url'=>array('index')),
	array('label'=>'Create Tax', 'url'=>array('create')),
	array('label'=>'Update Tax', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Tax', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Tax', 'url'=>array('admin')),
);
?>

<h1>View Tax <?php echo $model->title; ?></h1>

<?php if ($model->modified_time == null) 
        $this->widget('zii.widgets.CDetailView', array(
            'data'=>$model,
            'attributes'=>array(
                'id',
                'title',
                array(
                    'label' => 'Percent',
                    'value' => CHtml::encode($model->percent.' %')
                ),
                array(
                    'label' => 'Status',
                    'value' => CHtml::encode(($model->status == 1) ? 'enable' : 'disable')
                ),
                'description',
                array(
                    'label' => 'Created time',
                    'value' => CHtml::encode(date('d/m/Y H:i:s', $model->created_time))
                ),
                'created_by',
                'modified_time',
                'modified_by',
            ),
        )); 
      else
          $this->widget('zii.widgets.CDetailView', array(
            'data'=>$model,
            'attributes'=>array(
                'id',
                'title',
                array(
                    'label' => 'Percent',
                    'value' => CHtml::encode($model->percent.' %')
                ),
                array(
                    'label' => 'Status',
                    'value' => CHtml::encode(($model->status == 1) ? 'enable' : 'disable')
                ),
                'description',
                array(
                    'label' => 'Created time',
                    'value' => CHtml::encode(date('d/m/Y H:i:s', $model->created_time))
                ),
                'created_by',
                array(
                    'label' => 'Modified time',
                    'value' => CHtml::encode(date('d/m/Y H:i:s', $model->modified_time))
                ),
                'modified_by',
            ),
        )); 
?>
